package staticdemo_d1;

public class Test {
    public static void main(String[] args) {
        Student.name = "";
        //类变量（共享的）
        Student s1 = new Student();
        s1.name = "马冬梅";
        Student s2 = new Student();
        s2.name = "马秋梅";
        System.out.println(s1.name);

        //实例变量（独有的）
        s1.age = 1;
        s2.age = 100;
        System.out.println(s1.age);
    }
}

